﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    public partial class RegTbOpInvoicePayway
    {
        public long InvoiceId { get; set; }
        public long? ChargeNo { get; set; }
        public int? Payway { get; set; }
        public string? PaywayName { get; set; }
        public decimal? PayAmount { get; set; }
        public int? OpCode { get; set; }
        public DateTime? OpTime { get; set; }
        public int? Status { get; set; }
        public bool IsDelete { get; set; }
        public int? CreatedBy { get; set; }
        public DateTime? CreatedDate { get; set; }
        public int? UpdateBy { get; set; }
        public DateTime? UpdateDate { get; set; }
        public int? HospitalCode { get; set; }
        public int? SerialNo { get; set; }
        /// <summary>
        /// 现金退款原因
        /// </summary>
        public string? CashRefundReason { get; set; }
        /// <summary>
        /// 支付退款标识，1支付 2退款
        /// </summary>
        public int? PayOrRefund { get; set; }
        /// <summary>
        /// 移动支付第三方订单号，商户号
        /// </summary>
        public string? PayOrderNo { get; set; }
        /// <summary>
        /// 支付支付第三方支付流水号
        /// </summary>
        public string? ReturnOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款订单号，商户退单号
        /// </summary>
        public string? RefundOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款第三方流水号
        /// </summary>
        public string? RefundReturnOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款金额
        /// </summary>
        public decimal? MrefundAmout { get; set; }
        /// <summary>
        /// 移动支付退款前总金额
        /// </summary>
        public decimal? MpayTotal { get; set; }
        /// <summary>
        /// 移动支付退款后剩余金额
        /// </summary>
        public decimal? MremainingAmout { get; set; }
        /// <summary>
        /// 移动支付平台支付方式
        /// </summary>
        public string? MpayType { get; set; }
        /// <summary>
        /// 移动支付退款成功标记 1退款中 2退款成功
        /// </summary>
        public int? MrefundFlag { get; set; }
    }
}
